<?php
namespace Admin\Model;
use Think\Model;

class ArticleSortModel extends Model
{
    protected $tableName = "article_sort";
    protected $tabelPrefix = "dangjian_";

    //查询所有文章分类
    public function queryAllSort ()
    {
        $res = $this->select();
        return $res;
    }

    public function updateSort($id,$data)
    {
        return $this->where("id=$id")->save($data);
    }

}